<?php
	require_once('nusoap/lib/nusoap.php');
/**
 * Read Webservice method
 */
	class getWebservice {
		
	    /**
	     * get WebService method
	     * @returns a object Webservice Result 
	     */
		function gWebservice($url,$method,$param){
			$client = new soapclient($url, true);
			$client->soap_defencoding = 'utf-8';
			$client->decode_utf8 = false;
			$client->xml_encoding = 'utf-8';
			$err = $client->getError();
			
			if ($err) {
				return 'error';
			}
			$result = $client->call($method,array('parameters' => $param));
			
			return $result;
		}
	}
?>
